<?
if(!empty($page_links))
    echo "<p>$page_links</p>";


echo "<table>
      <tr><th><a href=\"/admin/article/add\" class=\"action\">+</a></th>
          <th>Cтатья</th>
          <th style=\"width:50px;\">Добавлена</th>
          <th style=\"width:50px;\">Действия</th>
      </tr>";
foreach ($articles as $article){
    $id = $article->id;
    $href = $article->href;

    echo "<tr><td></td>
              <td>
                <b>{$article->html_title}</b><br/>
                <a href=\"$href\" target=\"_blank\">$href</a>
              </td>
              <td>".date("d.m.Y", strtotime($article->created))."</td>
              <td><a href=\"/admin/article/edit?id=$id\" title=\"Редактировать\">edit</a>
                  <a href=\"/admin/article/del?id=$id\" title=\"Удалить\">delete</a>
              </td>
          </tr>";
}

?>